{% extends "FOSUserBundle::layout.html.twig" %}
{% block head %}
{{parent()}}
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") == false %}
	<meta http-equiv="refresh" content="1; url={{path('cadss_test_homepage')}}" />
	<script type="text/javascript">
            window.location.href = "{{ path('fos_user_security_login') }}"
    </script>
{% endif %}
{% endblock head %}

{% block fos_user_content %}
	<div id="dragme" class="login unselectable">	
		{{ form_start(form) }}
			{{ form_errors(form) }}
			<table>
				<tr>
					<td><label for="keyword">{{ form_label(form.dTitel) }}</label></td>
					<td>
						{{ form_widget(form.dTitel) }}
					</td>
				</tr>
				<tr>
					<td><label for="keyword">{{ form_label(form.dOmschrijving) }}</label></td>
					<td>
						{{ form_widget(form.dOmschrijving) }}
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						{{ form_widget(form.file) }}
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						{{ form_row(form.keywords) }}
					</td>
				</tr>
				<tr>
					<td colspan="2">
						{{ form_row(form.Upload) }}
					</td>
				</tr>
			</table>
			{{ form_rest(form) }}
		{{ form_start(form) }}
	</div>
{% endblock fos_user_content %}